<template>
  <div class="father">
    我是father组件==={{ content }}
    <button @click="btn">点击修改provide传值</button>
    <son></son>
  </div>
</template>
<script>
import son from './son.vue'
export default {
  name: '',
  inject: ['content', 'say'],
  provide () {
    return {
      father: '大家好,我是第一代father'
    }
  },
  components: { son },
  data () {
    return {

    }
  },
  created () {

  },
  computed: {
  },
  methods: {
    btn () {
      this.say('我是father,我修改了provide里的content值')
    }
  }
}
</script>
<style lang='less'  scoped>
</style>
